{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}

<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
	<body>
		<tr>
		 <td align="center" class="table1" colspan="10"><b>Unloading Register (Bill Register)</b></td>
		</td>
		<tr>
	    <th class="table2"  align="center"></th>
	    <th class="table2"  align="center">Truck No</th>
	    <th class="table2"  align="center">Load Inv No</th>
	    <th class="table2"  align="center">Load From</th>
	    <th class="table2"  align="center">Unload To</th>
	    <th class="table2"  align="center">Unload Inv No</th>
	    <th class="table2"  align="center">Unload Inv Date</th>
	    <th class="table2"  align="center">Unload Date</th>
		</tr>
		{section name="sec" loop=$unloadArray}
		<tr>
		<td class="table2" align="center"><a href="unloadingregisterDelete.php?unloadId={$unloadArray[sec].unloadId}" onclick="return myFunction();" class="link"> <img src="./images/deleteIco.png"></a></td>
		<td class="table2" align="center">{$unloadArray[sec].truckId}</td>
		<td class="table2" align="center"></td>
		<td class="table2" align="center">{$unloadArray[sec].unloadfrom}</td>
		<td class="table2" align="center">{$unloadArray[sec].unloadTo}</td>
		<td class="table2" align="center">{$unloadArray[sec].unloadInvNo}</td>
		<td class="table2" align="center">{$unloadArray[sec].unloadInvoiceDate}</td>
		<td class="table2" align="center">{$unloadArray[sec].unloadDate}</td>
		</tr>
		{/section}
  </body>
</table>

<br /> <br />
<table align="center" border="2" cellpadding="2" cellspacing="2">
	<body>
		<tr>
		 <td align="center" class="table1" colspan="12"><b>Unloading Register (Bill Register)</b></td>
		</td>
		<tr>
	    <th class="table2" align="center">Unload Id</th>
	    <th class="table2" align="center">LR No.</th>
	    <th class="table2" align="center">Consignor</th>
	    <th class="table2" align="center">Consignee</th>
	    <th class="table2" align="center">Weight</th>
	    <th class="table2" align="center">Desc</th>
	    <th class="table2" align="center">To Pay / Paid</th>
	    <th class="table2" align="center">Octroi</th>
	    <th class="table2" align="center">Octroi No</th>
	    <th class="table2" align="center" NOWRAP>Delivery Date</th>
	    <th class="table2" align="center" NOWRAP>Cash Meno No</th>
	    <th class="table2" align="center" NOWRAP>Lenar Party Name</th>
	    <th class="table2" align="center" NOWRAP>Grand Total</th>
</tr>
		{section name="sec" loop=$unloadDetailArray}
		<tr>
		<td class="table2" align="center"><a href="partyDetailDelete.php?unloadDetailArray={$unloadDetailArray[sec].partyDetailId}" onclick="return myFunction();" class="link"> <img src="./images/deleteIco.png"></a></td>
		<td class="table2" align="center">{$unloadDetailArray[sec].unloadId}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].unloadLrNo}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].consignor}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].consignee}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].weight}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].desco}</td>
		<td class="table2" align="center"></td>
		<td class="table2" align="center">{$unloadDetailArray[sec].octroi}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].octroiNo}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].deliveryDate}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].cashMemoNo}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].lenarParty}</td>
		<td class="table2" align="center">{$unloadDetailArray[sec].grandTotal}</td>
		</tr>
		{/section}
  </body>
</table>
{/block}

